//
//  FundManagementRecordButton.m
//  优学荟管理系统
//
//  Created by 星道 on 17/9/5.
//  Copyright © 2017年 星道三好. All rights reserved.
//

#import "FundManagementRecordButton.h"

@implementation FundManagementRecordButton

+ (FundManagementRecordButton *)ConfigWithTitle:(NSString *)title index:(NSInteger)index {

    FundManagementRecordButton *button = (FundManagementRecordButton *)[UIButton buttonWithType:(UIButtonTypeCustom)];

    button.tag = index;

    [button setTitle:title forState:(UIControlStateNormal)];

    [button setBackgroundImage:[LLTools createImageWithColor:ColorRGB(255, 255, 255)] forState:(UIControlStateNormal)];
    [button setBackgroundImage:[LLTools createImageWithColor:ColorRGB(72, 158, 180)] forState:(UIControlStateSelected)];

    [button setTitleColor:ColorRGB(72, 158, 180) forState:(UIControlStateNormal)];
    [button setTitleColor:ColorRGB(255, 255, 255) forState:(UIControlStateSelected)];

    button.titleLabel.font = [UIFont systemFontOfSize:14.f];

    return button;

}

@end
